<template>
    <div id="myFollowPost">
      <div class="title">
        关注的帖子
      </div>
      <!-- 帖子的展示列表  根据数据动态渲染中间需要一个过度数据 -->
      <div class="content">
        <ul class="post-items">
          <li class="post-item">
            <img class="post-user-head" src="../../../../../assets/img/user/userHead.png" alt="用户头像">
            <div class="post-item-content">
              <div class="post-describe">
                <span class="username">username</span>
                <span class="time">2017-12-12</span>
                <span class="class">前端·后端</span>
              </div>
              <div class="post-title">前端进阶：React 企业管理系统开发指南</div>
              <div class="user-action">
                <span class="like iconfont icon-zan1">12</span><span class="iconfont icon-pinglun commentsNum">32</span><span class="unfollow">取消关注</span>
              </div>
            </div>
          </li>
          <li class="post-item">
            <img class="post-user-head" src="../../../../../assets/img/user/userHead.png" alt="用户头像">
            <div class="post-item-content">
              <div class="post-describe">
                <span class="username">username</span>
                <span class="time">2017-12-12</span>
                <span class="class">前端·后端</span>
              </div>
              <div class="post-title">前端进阶：React 企业管理系统开发指南</div>
              <div class="user-action">
                <span class="like iconfont icon-zan1">12</span><span class="iconfont icon-pinglun commentsNum">32</span><span class="unfollow">取消关注</span>
              </div>
            </div>
          </li>
          <li class="post-item">
            <img class="post-user-head" src="../../../../../assets/img/user/userHead.png" alt="用户头像">
            <div class="post-item-content">
              <div class="post-describe">
                <span class="username">username</span>
                <span class="time">2017-12-12</span>
                <span class="class">前端·后端</span>
              </div>
              <div class="post-title">前端进阶：React 企业管理系统开发指南</div>
              <div class="user-action">
                <span class="like iconfont icon-zan1">12</span><span class="iconfont icon-pinglun commentsNum">32</span><span class="unfollow">取消关注</span>
              </div>
            </div>
          </li>
        </ul>
      </div>
    </div>
</template>

<script>
  export default {
    name: 'myFollowPost',
    props: {},
    data () {
      return {}
    },
    mounted () {

    },
  }
</script>

<style scoped>
  @import "../../../../../assets/css/postItem.css";

  .title {
    height: 60px;
    border-bottom: 1px solid #e0e1e2;
    padding-left: 20px;
    line-height: 60px;
    overflow: hidden;
    color: #71777c;
    font-size: 18px;
  }

  .user-action {
    width: 100%;
  }
 #myFollowPost .content .post-items .post-item .user-action .unfollow {
    background-color: #8bbb4e;
    margin-left: 30px !important;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    border-radius: 2px;
    color: white;
   font-size: 12px;
  }
  #myFollowPost .content .post-items .post-item  .user-action .unfollow:hover {
   background-color: #82af49;
 }
</style>
